package cn.tedu.zx.album.service;

import cn.tedu.zx.common.restful.JsonPage;
import cn.tedu.zx.pojo.court.dto.PictureAddNewDto;
import cn.tedu.zx.pojo.court.dto.PictureUpdateDto;
import cn.tedu.zx.pojo.court.vo.PictureDetailsVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface PictureService {
    void addNew(PictureAddNewDto pictureAddNewDto);

    void deleteById(Long id);

    void updateById(PictureUpdateDto pictureUpdateDto);

    PictureDetailsVo selectDetailsById(Long Id);

    JsonPage list(Integer pageNum, Integer id);

    JsonPage list(Integer pageNum, Integer PageSize, Integer id);

    void setCover(Long id);

    List<String> slideshowList();

    void slideshowChange(Long id, Integer slideshow);

    void updateDescription(Long id, String description);
}
